package com.chinawayltd.ews.sample.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.chinawayltd.ews.sample.service.SynchroOrgService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = { "机构同步任务定时器API" })
@RestController
public class SynchroOrgController {

    @Autowired
    private SynchroOrgService synchroOrgService;
    @ApiOperation(value = "定时器")
    @RequestMapping(value = "/synchroOrgService", method = { RequestMethod.GET })
    public void doJob() {
    	try {
            synchroOrgService.synchroOrgData();
        } catch (Exception e) {
        	e.printStackTrace();
        }
    }
}
